package com.isoft.listener;

import com.isoft.service.tableservice.DfmeLbdeService;
import org.junit.jupiter.api.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


@Component
@Order(1)
public class FileInitRun implements CommandLineRunner {
    @Autowired
    private DfmeLbdeService dfmeLbdeService;

    @Override
    public void run(String... args) throws Exception {
        FileListener.setDfmeLbdeService(dfmeLbdeService);
    }
}
